package nl.hanze.designpatterns.mvc.controller;

import java.awt.event.ActionListener;

import nl.hanze.designpatterns.mvc.model.MainModel;

abstract public class Controller implements ActionListener {

	private MainModel model;
	
	public Controller(){
		this.init(model);
	}
	
	private void init(MainModel model){
		this.setModel(model);
	}
	
	
	protected void setModel(MainModel model){
		this.model = model;
	}
	
	protected MainModel getModel(){
		return this.model;
	}
}
